package com.mmg.cosplay.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mmg.cosplay.entity.dto.LoginRequest;
import com.mmg.cosplay.entity.dto.LoginResponse;
import com.mmg.cosplay.entity.User;
import dev.langchain4j.data.message.ChatMessage;
import jakarta.validation.Valid;

import java.util.List;
import java.util.Map;

public interface UserService extends IService<User> {

    List<Map<String,String>> getUserChatConversations(Long loginId);

    LoginResponse login(@Valid LoginRequest request);

    Boolean saveUser(@Valid User user);

    Boolean updateUser(@Valid User user);

    User getAccountByUsername(String username);

    List<ChatMessage> getMessagesByConversationId(String id);

    // 新增的三个方法
    Boolean renameConversation(String memoryId, String newTitle);

    Boolean deleteConversation(String memoryId);

    Boolean toggleConversationTop(String memoryId, String isTop);
}
